module.exports = {
    devServer: {
        host: 'localhost', //主机名
        port: 8080, //用于修改端口
        proxy: {
            '/api': {
                target: 'http://mall-pre.springboot.cn',
                changeOrigin: true, //主机头
                pathRewrite: {
                    '/api': ''
                }
            }
        }
    },
    chainWebpack: (config) => {
        config.plugins.delete('prefetch');
    }
}